System.InvalidOperationException: The AuthorizationPolicy named: View All Roles was not found.

72

System.InvalidOperationException: The AuthorizationPolicy named: 'View All Roles' was not found. -

services.AddAuthorization(o =>
{
    o.AddPolicy("FirstStepCompleted", policy => policy.RequireClaim("FirstStepCompleted"));
    o.AddPolicy("Authorized", policy => policy.RequireClaim("Authorized"));
});

Comments

Submit
0 Comments